.class Lcom/htc/android/footprints/activity/PostcardActivity$10;
.super Ljava/lang/Object;
.source "PostcardActivity.java"

# interfaces
.implements Landroid/content/DialogInterface$OnKeyListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/htc/android/footprints/activity/PostcardActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/htc/android/footprints/activity/PostcardActivity;


# direct methods
.method constructor <init>(Lcom/htc/android/footprints/activity/PostcardActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 1261
    iput-object p1, p0, Lcom/htc/android/footprints/activity/PostcardActivity$10;->this$0:Lcom/htc/android/footprints/activity/PostcardActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onKey(Landroid/content/DialogInterface;ILandroid/view/KeyEvent;)Z
    .locals 4
    .parameter "dlg"
    .parameter "keyCode"
    .parameter "event"

    .prologue
    const/4 v2, 0x4

    const/4 v3, 0x1

    .line 1262
    iget-object v1, p0, Lcom/htc/android/footprints/activity/PostcardActivity$10;->this$0:Lcom/htc/android/footprints/activity/PostcardActivity;

    #getter for: Lcom/htc/android/footprints/activity/PostcardActivity;->progressDialog:Landroid/app/ProgressDialog;
    invoke-static {v1}, Lcom/htc/android/footprints/activity/PostcardActivity;->access$400(Lcom/htc/android/footprints/activity/PostcardActivity;)Landroid/app/ProgressDialog;

    move-result-object v1

    if-ne p1, v1, :cond_0

    if-ne p2, v2, :cond_0

    .line 1263
    const-string v1, "PostcardActivity"

    const-string v2, "keyCode = KEYCODE_BACK"

    invoke-static {v1, v2}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 1264
    iget-object v1, p0, Lcom/htc/android/footprints/activity/PostcardActivity$10;->this$0:Lcom/htc/android/footprints/activity/PostcardActivity;

    invoke-static {v1}, Lcom/htc/android/footprints/utils/TitleGenerator;->getInstance(Landroid/content/Context;)Lcom/htc/android/footprints/utils/TitleGenerator;

    move-result-object v1

    invoke-virtual {v1}, Lcom/htc/android/footprints/utils/TitleGenerator;->stopTitleSearch()V

    .line 1265
    iget-object v1, p0, Lcom/htc/android/footprints/activity/PostcardActivity$10;->this$0:Lcom/htc/android/footprints/activity/PostcardActivity;

    #getter for: Lcom/htc/android/footprints/activity/PostcardActivity;->progressDialog:Landroid/app/ProgressDialog;
    invoke-static {v1}, Lcom/htc/android/footprints/activity/PostcardActivity;->access$400(Lcom/htc/android/footprints/activity/PostcardActivity;)Landroid/app/ProgressDialog;

    move-result-object v1

    invoke-virtual {v1}, Landroid/app/ProgressDialog;->cancel()V

    move v1, v3

    .line 1279
    :goto_0
    return v1

    .line 1268
    :cond_0
    iget-object v1, p0, Lcom/htc/android/footprints/activity/PostcardActivity$10;->this$0:Lcom/htc/android/footprints/activity/PostcardActivity;

    #getter for: Lcom/htc/android/footprints/activity/PostcardActivity;->mListDialog:Lcom/htc/widget/HtcAlertDialog;
    invoke-static {v1}, Lcom/htc/android/footprints/activity/PostcardActivity;->access$1700(Lcom/htc/android/footprints/activity/PostcardActivity;)Lcom/htc/widget/HtcAlertDialog;

    move-result-object v1

    if-ne p1, v1, :cond_1

    if-ne p2, v2, :cond_1

    .line 1270
    :try_start_0
    iget-object v1, p0, Lcom/htc/android/footprints/activity/PostcardActivity$10;->this$0:Lcom/htc/android/footprints/activity/PostcardActivity;

    #getter for: Lcom/htc/android/footprints/activity/PostcardActivity;->gpsEnabled:Z
    invoke-static {v1}, Lcom/htc/android/footprints/activity/PostcardActivity;->access$1800(Lcom/htc/android/footprints/activity/PostcardActivity;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 1271
    iget-object v1, p0, Lcom/htc/android/footprints/activity/PostcardActivity$10;->this$0:Lcom/htc/android/footprints/activity/PostcardActivity;

    iget-object v1, v1, Lcom/htc/android/footprints/activity/PostcardActivity;->mService:Lcom/htc/android/footprints/ILocationAgentService;

    invoke-interface {v1}, Lcom/htc/android/footprints/ILocationAgentService;->continueTracking()V

    .line 1272
    iget-object v1, p0, Lcom/htc/android/footprints/activity/PostcardActivity$10;->this$0:Lcom/htc/android/footprints/activity/PostcardActivity;

    iget-object v1, v1, Lcom/htc/android/footprints/activity/PostcardActivity;->mService:Lcom/htc/android/footprints/ILocationAgentService;

    const/4 v2, 0x1

    invoke-interface {v1, v2}, Lcom/htc/android/footprints/ILocationAgentService;->setTimeoutNotify(Z)V
    :try_end_0
    .catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0

    .line 1279
    :cond_1
    :goto_1
    const/4 v1, 0x0

    goto :goto_0

    .line 1274
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 1275
    .local v0, e:Landroid/os/RemoteException;
    invoke-virtual {v0}, Landroid/os/RemoteException;->printStackTrace()V

    goto :goto_1
.end method
